//
//  YHY_DataBaseTool.h
//  Travels
//
//  Created by yanghuiyan on 16/3/17.
//  Copyright © 2016年 yanghuiyan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HomePageDataModel.h"

@interface YHY_DataBaseTool : NSObject

+ (instancetype)shareDataBase;

//打开数据库
- (void)openDataBase;

//关闭数据库
- (void)closeDataBase;

/***************** HomePage *****************/

//创建
- (void)createHomePageDataModelTable;

//插入
- (void)insertDetailModelIntoTable:(HomePageDataModel *)dataModel;

//查询所有
- (NSMutableArray *)selectHomePageDataModelTable;

//判断是否有此页数据
- (BOOL)selectDataBase:(NSString *)hp_content;

//删除
- (void)deleteHomePageDataModelTable:(NSString *)content;

//删除表
- (void)dropHomePageDataModel;

@end
